/*
 * Copyright (c) 2023 iQi.Co.Ltd. All rights reserved.
 */
 
using IQIGame.Onigao.Framework;
using System.Collections.Generic;
using System.Linq;
using System;
using NetProtocol.Enum;

namespace NetProtocol.POD {

	/// <summary>
	///  Game服命令逻辑服停止战斗
	/// module : structs_internal
	/// </summary>
	public class ShutdownBattlePOD : IPOD 
    {
        public readonly static Func<ShutdownBattlePOD> FACTORY = () => new ShutdownBattlePOD();
		public static Func<ShutdownBattlePOD> DynamicFactory = FACTORY;
        
		/*-- members --*/
		/// <summary>
        /// 
        /// </summary>
		public long battleId;
		
		
		
		/*-- constructors --*/
		public ShutdownBattlePOD() {}
		public ShutdownBattlePOD(long battleId) {
			this.battleId = battleId;
		}
	      public void Serial(SOutputStream _out) {
            _out.Write_long(battleId);
        }
        
        public void UnSerial(SInputStream _in) {
            if(!_in.HasRemaining()) return;
            battleId = _in.Read_long();
        }
		
		public ShutdownBattlePOD Clone() {
            ShutdownBattlePOD o = DynamicFactory();
            o.battleId = battleId;
            return o;
        }
        
        public void Clear() {
            battleId = default;
        }
		
        public override string ToString() {
			string str = "";
			str += "ShutdownBattlePOD [";
			str += "battleId=";
			str += battleId;
			str += "]";
			return str;
		}
		
	}
}